#-*- coding:utf-8 -*-
from mongoengine import Document
from mongoengine.fields import ListField,ReferenceField,DictField,IntField,StringField,DateTimeField

class steam_infos(Document):
    url = StringField()
    class_title = ListField(StringField(default=u'', help_text=u'课堂标题规则'),default=[])
    class_desc = ListField(StringField(default=u'', help_text=u'课堂简介规则'),default=[])
    class_img = ListField(StringField(default=u'', help_text=u'课堂简介图片规则'),default=[])
    challenge_title = ListField(StringField(default=u'', help_text=u'挑战名字'),default=[])
    challenge_desc = ListField(StringField(default=u'', help_text=u'挑战简介'),default=[])

    objective = ListField(StringField(default=u'', help_text=u'目标的规则'),default=[])
    background_information = ListField(StringField(default=u'', help_text=u'背景信息的规则'),default=[])

    science_skills = ListField(StringField(default=u'', help_text=u'科学类'),default=[])
    technology_skills = ListField(StringField(default=u'', help_text=u'技术类'),default=[])
    engineering_skills = ListField(StringField(default=u'', help_text=u'工程类'),default=[])
    arts_skills = ListField(StringField(default=u'', help_text=u'艺术类'),default=[])
    math_skills = ListField(StringField(default=u'', help_text=u'数学类'),default=[])

    directions = ListField(StringField(default=u'', help_text=u'挑战方向'),default=[])
    materials = ListField(StringField(default=u'', help_text=u'所需材料'),default=[])
    wrap_up = ListField(StringField(default=u'', help_text=u'总结'),default=[])

    extended_picture = ListField(StringField(default=u'', help_text=u'扩展图片'),default=[])
    achievements_picture = ListField(StringField(default=u'', help_text=u'成果样例图片'),default=[])

    meta = {"db_alias": "steam_data"}


class brainpop_steam_infos(Document):
    url = StringField()
    class_title = ListField(StringField(default=u'', help_text=u'课堂标题规则'),default=[])
    class_desc = ListField(StringField(default=u'', help_text=u'课堂简介规则'),default=[])
    class_img = ListField(StringField(default=u'', help_text=u'课堂简介图片规则'),default=[])
    challenge_title = ListField(StringField(default=u'', help_text=u'挑战名字'),default=[])
    challenge_desc = ListField(StringField(default=u'', help_text=u'挑战简介'),default=[])

    objective = ListField(StringField(default=u'', help_text=u'目标的规则'),default=[])
    background_information = ListField(StringField(default=u'', help_text=u'背景信息的规则'),default=[])

    science_skills = ListField(StringField(default=u'', help_text=u'科学类'),default=[])
    technology_skills = ListField(StringField(default=u'', help_text=u'技术类'),default=[])
    engineering_skills = ListField(StringField(default=u'', help_text=u'工程类'),default=[])
    arts_skills = ListField(StringField(default=u'', help_text=u'艺术类'),default=[])
    math_skills = ListField(StringField(default=u'', help_text=u'数学类'),default=[])

    directions = ListField(StringField(default=u'', help_text=u'挑战方向'),default=[])
    materials = ListField(StringField(default=u'', help_text=u'所需材料'),default=[])
    wrap_up = ListField(StringField(default=u'', help_text=u'总结'),default=[])

    extended_content = ListField(StringField(default=u'', help_text=u'扩展说明'),default=[])
    extended_picture = ListField(StringField(default=u'', help_text=u'扩展图片'),default=[])
    achievements_picture = ListField(StringField(default=u'', help_text=u'成果样例图片'),default=[])

    meta = {"db_alias": "steam_data"}



class nasa_steam_infos(Document):
    url = StringField()
    class_title = ListField(StringField(default=u'', help_text=u'课堂标题规则'),default=[])
    class_desc = ListField(StringField(default=u'', help_text=u'课堂简介规则'),default=[])
    class_img = ListField(StringField(default=u'', help_text=u'课堂简介图片规则'),default=[])
    challenge_title = ListField(StringField(default=u'', help_text=u'挑战名字'),default=[])
    challenge_desc = ListField(StringField(default=u'', help_text=u'挑战简介'),default=[])

    objective = ListField(StringField(default=u'', help_text=u'目标的规则'),default=[])
    background_information = ListField(StringField(default=u'', help_text=u'背景信息的规则'),default=[])

    science_skills = ListField(StringField(default=u'', help_text=u'科学类'),default=[])
    technology_skills = ListField(StringField(default=u'', help_text=u'技术类'),default=[])
    engineering_skills = ListField(StringField(default=u'', help_text=u'工程类'),default=[])
    arts_skills = ListField(StringField(default=u'', help_text=u'艺术类'),default=[])
    math_skills = ListField(StringField(default=u'', help_text=u'数学类'),default=[])

    directions = ListField(StringField(default=u'', help_text=u'挑战方向'),default=[])
    materials = ListField(StringField(default=u'', help_text=u'所需材料'),default=[])
    wrap_up = ListField(StringField(default=u'', help_text=u'总结'),default=[])

    extended_content = ListField(StringField(default=u'', help_text=u'扩展说明'),default=[])
    extended_picture = ListField(StringField(default=u'', help_text=u'扩展图片'),default=[])
    achievements_picture = ListField(StringField(default=u'', help_text=u'成果样例图片'),default=[])

    meta = {"db_alias": "steam_data"}




class proxy_ips(Document):
    ip = StringField(required=True)  # 代理ip
    port = IntField(required=True)  # 端口
    type = StringField(default=u'')  # 代理类型
    position = StringField(default=u'')  # 代理的位置
    speed = IntField()  # 速度  百分比
    connect_time = IntField()  # 连接时间 百分比
    survival_time= IntField()  # 存活时间 单位小时
    last_check_time= DateTimeField()  # 最后验证时间

    meta = {"db_alias": "collect_proxy_ips"}